<%@ page import="java.util.List" %>
<%@ page import="entity.Field" %><%--
  Created by IntelliJ IDEA.
  User: zhouya
  Date: 2019/6/20/0020
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        table{border: 1px solid gray;border-collapse: collapse;}
        td{border: 1px solid gray;text-align: center;}
        a {color: #01040c; text-decoration:none;}
        a:visited {text-decoration:none;}
        a:hover {color:#ba2636;text-decoration:underline;}
        a:active {color:#ba2636;}
    </style>
    <%
        List<Field> fieldList=(List<Field>)request.getAttribute("fieldList");
    %>
</head>
<body>
<table>
    <a>增加</a>
    <tr>
        <td>栏目ID</td>
        <td>栏目名</td>
        <td>操作</td>
    </tr>
    <%for(Field fl:fieldList){%>
    <tr>
        <td><%=fl.getFieldID()%></td>
        <td><%=fl.getFieldName()%></td>
        <td><a>删除</a></td>
    </tr>
    <%}%>
</table>
</body>
</html>
